﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RN.ERP.Web.Enterprise
{
    /// <summary>
    /// c++调用图片提出点击图片查看打开新页面TMD，此页面为新打开的页面
    /// 2014-5-10
    /// </summary>
    public partial class UploadFileShowNewpage : System.Web.UI.Page
    {
        protected string FileName
        {
            get
            {
                return Request["fileName"];
            }
        }
        protected string SysCode
        {
            get
            {
                return Request["sysCode"];
            }
        }
        protected string FuncCode
        {
            get
            {
                return Request["funcCode"];
            }
        }
        public string ImageUrl=string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            ImageUrl = GetImgUrl();
            imgCorpOrg.ImageUrl = ImageUrl;
        }

        public string GetImgUrl()
        {
            return string.Format("../Handlers/GetFileHandler.ashx?fileName={0}&sysCode={1}&funcCode={2}&rand ={3}", FileName, SysCode, FuncCode, Guid.NewGuid());
        }
    }
}